<?php
use yii\helpers\Html;

use kartik\detail\DetailView;
/**
 *
 * @var yii\web\View $this
 * @var backend\modules\trancfg\models\Pubtrandict $model
 */

$this->title = Yii::t ( 'app', '修改 交易字典: ', [ 
		'modelClass' => 'Pubtrandict' 
] ) . ' ' . $model->MTID;
$this->params ['breadcrumbs'] [] = [ 
		'label' => Yii::t ( 'app', '交易字典' ),
		'url' => [ 
				'index' 
		] 
];
$this->params ['breadcrumbs'] [] = [ 
		'label' => $model->MTID,
		'url' => [ 
				'view',
				'MTID' => $model->MTID,
				'IOFLAG' => $model->IOFLAG,
				'SEQNO' => $model->SEQNO 
		] 
];
$this->params ['breadcrumbs'] [] = Yii::t ( 'app', '修改' );
?>
<!-- <div class="pubtrandict-update">

	<div class="panel panel-info">
		<div class="panel-heading">
			<h3 class="panel-title"><?= Html::encode($this->title) ?></h3>
		</div>
		<div class="panel-body">
			<?=$this->render ( '_form', [ 'model' => $model ] )?>
		</div>
	</div>
	
</div> -->

<?= DetailView::widget([
        'model' => $model,
        'condensed'=>true,
        'responsive' => true,
        'hover'=>true,
        'mode'=>DetailView::MODE_EDIT,
        'panel'=>[
            'heading'=>'交易字典 / ' . $model->MTID,
            'type'=>DetailView::TYPE_INFO,
        ],
        'attributes' => [
            'MTID',
            'ROUTEID',
            'IOFLAG',
            'SEQNO',
            'DICTCODE',
            'DICTTYPE',
            'DICTLEN',
            'DECLEN',
            'DICTNAME',
            'FLAG',
            'SUBMARK',
            'SUBCOND',
            'FIELD',
            //'PATH',
            'DEFVAL',
            'DEALFUNC',
            'MEMO',
            ['attribute'=>'PATH', 'type'=>DetailView::INPUT_TEXT],
        ],
        'deleteOptions' => [
            'url' => [ 
				'delete',
				'MTID' => $model->MTID,
				'IOFLAG' => $model->IOFLAG,
				'SEQNO' => $model->SEQNO 
			],
			'data' => [
                'confirm' => Yii::t('app', '确定删除这条记录吗?'),
                'method' => 'post',
            ],
        ],
    ]) ?>
